import service from '@/utils/request'

// @Tags QmGameList
// @Summary 创建qmGameList表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmGameList true "创建qmGameList表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /qmGameList/createQmGameList [post]
export const createQmGameList = (data) => {
  return service({
    url: '/qmGameList/createQmGameList',
    method: 'post',
    data
  })
}

// @Tags QmGameList
// @Summary 删除qmGameList表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmGameList true "删除qmGameList表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmGameList/deleteQmGameList [delete]
export const deleteQmGameList = (params) => {
  return service({
    url: '/qmGameList/deleteQmGameList',
    method: 'delete',
    params
  })
}

// @Tags QmGameList
// @Summary 批量删除qmGameList表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除qmGameList表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmGameList/deleteQmGameList [delete]
export const deleteQmGameListByIds = (params) => {
  return service({
    url: '/qmGameList/deleteQmGameListByIds',
    method: 'delete',
    params
  })
}

// @Tags QmGameList
// @Summary 更新qmGameList表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmGameList true "更新qmGameList表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /qmGameList/updateQmGameList [put]
export const updateQmGameList = (data) => {
  return service({
    url: '/qmGameList/updateQmGameList',
    method: 'put',
    data
  })
}

// @Tags QmGameList
// @Summary 用id查询qmGameList表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.QmGameList true "用id查询qmGameList表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /qmGameList/findQmGameList [get]
export const findQmGameList = (params) => {
  return service({
    url: '/qmGameList/findQmGameList',
    method: 'get',
    params
  })
}

// @Tags QmGameList
// @Summary 分页获取qmGameList表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取qmGameList表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /qmGameList/getQmGameListList [get]
export const getQmGameListList = (params) => {
  return service({
    url: '/qmGameList/getQmGameListList',
    method: 'get',
    params
  })
}

export const getUserGameList = (params) => {
  return service({
    url: '/qmGameList/getUserGameList',
    method: 'get',
    params
  })
}
